<load file="__PUBLIC__/public.html"/>
<div class="setup">
    <form action="__CONTROL__/addaccess" method="post">
        <input type="hidden" name="rid" value="{$hd.get.rid}"/>
        <div id="hd_rbac">
            <?php
            foreach($node as $v){
            ?>
            <h1><input type="checkbox"  name="node[]" value="{$v['nid']}" class="check"
                        <empty value="{$v['access']}"><noempty/>checked='checked'</empty>
                />{$v['title']}<strong>({$v['name']})</strong>
            </h1>
            <?php
            if(isset($v['node'])&&is_array($v['node'])){
            foreach($v['node'] as $m){
            ?>
            <table>
                <thead>
                    <tr>
                        <th>
                <input type="checkbox"  name="node[]" value="{$m['nid']}" class="check" 
                <empty value="{$m['access']}"><noempty/>checked='checked'</empty>/>{$m['title']}<strong>({$m['name']})</strong>
                        </th>
                    </tr>
                </thead>
                    <?php
                    if(isset($m['node'])&&!empty($m['node'])){
                    ?>
                <tbody>
                    <tr>
                        <td>
                            <ul>
                                <?php
                                foreach($m['node'] as $j){
                                ?>
                                <li>
                                    <input type="checkbox"  name="node[]" value="{$j['nid']}" class="check" 
                                            <empty value="{$j['access']}"><noempty/>checked='checked'</empty>
                                            /> {$j['title']}<strong>({$j['name']})</strong>
                                </li>
                                <?php
                                }
                                ?>
                            </ul></td></tr></tbody>
                <?php
                }
                ?>
            </table>
            <?php
            }
            }
            }
            ?>
        </div>
        <div style="margin-left:20px;margin-top:20px;">
            <input type="submit" value="修改" class="query"/>
        </div>
    </form>
</div>
</body>
</html>
